﻿-- Author      : Tamas_Herner
-- Create Date : 11/14/2008 10:22:18 AM



function ReloadUIButton_OnClick()
  ReloadUI();
end

function BottomRightResizeFrame_OnMouseDown()
  --Start bottom right sizing.
  MainFrame:StartSizing("BOTTOMRIGHT");
end

function BottomRightResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function BottomLeftResizeFrame_OnMouseDown()
  --Start bottom left sizing.
  MainFrame:StartSizing("BOTTOMLEFT");
end

function BottomLeftResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function BottomResizeFrame_OnMouseDown()
  --Start bottom sizing.
  MainFrame:StartSizing("BOTTOM");
end

function BottomResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function TopLeftResizeFrame_OnMouseDown()
  --Start top left sizing.
  MainFrame:StartSizing("TOPLEFT");
end

function TopLeftResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function TopRightResizeFrame_OnMouseDown()
  --Start top right sizing.
  MainFrame:StartSizing("TOPRIGHT");
end

function TopRightResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function TopResizeFrame_OnMouseDown()
  --Start top sizing.
  MainFrame:StartSizing("TOP");
end

function TopResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function RightResizeFrame_OnMouseDown()
  --Start right sizing.
  MainFrame:StartSizing("RIGHT");
end

function RightResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function LeftResizeFrame_OnMouseDown()
  --Start left sizing.
  MainFrame:StartSizing("LEFT");
end

function LeftResizeFrame_OnMouseUp()
  --Stop sizing.
  MainFrame:StopMovingOrSizing();
end

function HideButton_OnClick()
  -- Hide mani frame
  MainFrame:Hide();
end

function MinimapCheckButton_OnClick()
	if ( MinimapCheckButton:GetChecked() ) then
		Minimap2:Show();
	else
		Minimap2:Hide();
	end
end
